import request from '../axios'

//登录
export function login(data) {
    return request.post("/user/login",data)
}

//注册
export function register(data) {
    return request.post("/user/register", data)
}

//获得当前登录的用户信息
// export function getinfo(name) {
//     return request.get("/user/getUserInfo?id="+name)
// }